package com.house365.im.client;

import android.text.TextUtils;

/**
 *@author py
 *@date 2012-8-21
 *@comment
 */
public class IMConfiguration {
	private String version = "0.5.0";
	private String notifyDetailClass;
	private String appName;
	private int iconId;
	private String apiKey;
	private String host;
	private int port;

	
	private String broadcastAction;
	
	private String rootActivity;
	
	private String uploadUrl;
	private String heartbeatAction;
	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getNotifyDetailClass() {
		return notifyDetailClass;
	}

	public void setNotifyDetailClass(String notifyDetailClass) {
		this.notifyDetailClass = notifyDetailClass;
	}

	public int getIconId() {
		return iconId;
	}

	public void setIconId(int iconId) {
		this.iconId = iconId;
	}

	public String getApiKey() {
		return apiKey;
	}

	public void setApiKey(String apiKey) {
		this.apiKey = apiKey;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		if(TextUtils.isEmpty(host)){
			host = "127.0.0.1";
		}
		this.host = host;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public IMConfiguration(String notifyDetailClass,String broadcastAction,String heartbeatAction,String appName,int iconId,
			String apiKey, String host, int port,String uploadUrl,String rootActivity) {
		super();
		this.notifyDetailClass = notifyDetailClass;
		this.appName= appName;
		this.iconId = iconId;
		this.apiKey = apiKey;
		this.host = host;
		this.port = port;
		this.broadcastAction = broadcastAction;
		this.uploadUrl = uploadUrl;
		this.rootActivity = rootActivity;
		this.heartbeatAction =heartbeatAction;
	}


	public String getBroadcastAction() {
		return broadcastAction;
	}

	public void setBroadcastAction(String broadcastAction) {
		this.broadcastAction = broadcastAction;
	}

	public String getRootActivity() {
		return rootActivity;
	}

	public void setRootActivity(String rootActivity) {
		this.rootActivity = rootActivity;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public String getUploadUrl() {
		return uploadUrl;
	}

	public void setUploadUrl(String uploadUrl) {
		this.uploadUrl = uploadUrl;
	}

	public String getHeartbeatAction() {
		return heartbeatAction;
	}

	public void setHeartbeatAction(String heartbeatAction) {
		this.heartbeatAction = heartbeatAction;
	}

	
	
}
